package com.ctg.behavior.calc.impala.calculator;

public class JunitCommons {
    public static String general = "{\r\n"
            + "	\"measures\": [\r\n"
            + "		{\r\n"
            + "			\"eventId\": \"AppClick\",\r\n"
            + "			\"aggregator\": \"general\",\r\n"
            + "			\"name\": \"App启动的总次数\"\r\n"
            + "		},\r\n"
            + "		{\r\n"
            + "			\"eventId\": \"_AppEnd\",\r\n"
            + "			\"aggregator\": \"general\",\r\n"
            + "			\"name\": \"拉新成功的总次数\"\r\n"
            + "		}\r\n"
            + "	],\r\n"
            + "	\"fromDate\": \"2021-05-30\",\r\n"
            + "	\"toDate\": \"2021-05-31\",\r\n"
            + "	\"unit\": \"day\",\r\n"
            + "	\"byFields\": [\r\n"
            + "		\"event.Anything._lib\",\r\n"
            + "	],\r\n"
            + "	\"bucketParams\": {},\r\n"
            + "	\"filter\": {\r\n"
            + "		\"conditions\": []\r\n"
            + "	},\r\n"
            + "	\"requestId\": \"1623809053999:292032\"\r\n"
            + "}";


    public static String unique = "{\r\n"
            + "	\"measures\": [\r\n"
            + "		{\r\n"
            + "			\"eventId\": \"AppClick\",\r\n"
            + "			\"aggregator\": \"unique\",\r\n"
            + "			\"name\": \"App启动的总次数\"\r\n"
            + "		},\r\n"
            + "		{\r\n"
            + "			\"eventId\": \"_AppEnd\",\r\n"
            + "			\"aggregator\": \"unique\",\r\n"
            + "			\"name\": \"拉新成功的总次数\"\r\n"
            + "		}\r\n"
            + "	],\r\n"
            + "	\"fromDate\": \"2021-05-30\",\r\n"
            + "	\"toDate\": \"2021-05-31\",\r\n"
            + "	\"unit\": \"day\",\r\n"
            + "	\"byFields\": [\r\n"
            + "		\"event.Anything._lib\",\r\n"
            + "	],\r\n"
            + "	\"bucketParams\": {},\r\n"
            + "	\"filter\": {\r\n"
            + "		\"conditions\": []\r\n"
            + "	},\r\n"
            + "	\"requestId\": \"1623809053999:292032\"\r\n"
            + "}";


    public static String average = "{\r\n"
            + "	\"measures\": [\r\n"
            + "		{\r\n"
            + "			\"eventId\": \"AppClick\",\r\n"
            + "			\"aggregator\": \"average\",\r\n"
            + "			\"name\": \"App启动的总次数\"\r\n"
            + "		},\r\n"
            + "		{\r\n"
            + "			\"eventId\": \"_AppEnd\",\r\n"
            + "			\"aggregator\": \"average\",\r\n"
            + "			\"name\": \"拉新成功的总次数\"\r\n"
            + "		}\r\n"
            + "	],\r\n"
            + "	\"fromDate\": \"2021-05-30\",\r\n"
            + "	\"toDate\": \"2021-05-31\",\r\n"
            + "	\"unit\": \"day\",\r\n"
            + "	\"byFields\": [\r\n"
            + "		\"event.Anything._lib\",\r\n"
            + "	],\r\n"
            + "	\"bucketParams\": {},\r\n"
            + "	\"filter\": {\r\n"
            + "		\"conditions\": []\r\n"
            + "	},\r\n"
            + "	\"requestId\": \"1623809053999:292032\"\r\n"
            + "}";


    public static String count_last_day_7 = "{\r\n"
            + "	\"measures\": [\r\n"
            + "		{\r\n"
            + "			\"eventId\": \"AppClick\",\r\n"
            + "			\"aggregator\": \"count_last_day_7\",\r\n"
            + "			\"name\": \"App启动的总次数\"\r\n"
            + "		},\r\n"
            + "		{\r\n"
            + "			\"eventId\": \"_AppEnd\",\r\n"
            + "			\"aggregator\": \"count_last_day_7\",\r\n"
            + "			\"name\": \"拉新成功的总次数\"\r\n"
            + "		}\r\n"
            + "	],\r\n"
            + "	\"fromDate\": \"2021-05-30\",\r\n"
            + "	\"toDate\": \"2021-05-31\",\r\n"
            + "	\"unit\": \"day\",\r\n"
            + "	\"byFields\": [\r\n"
            + "		\"event.Anything._lib\",\r\n"
            + "	],\r\n"
            + "	\"bucketParams\": {},\r\n"
            + "	\"filter\": {\r\n"
            + "		\"conditions\": []\r\n"
            + "	},\r\n"
            + "	\"requestId\": \"1623809053999:292032\"\r\n"
            + "}";

    public static String uniq_last_day_7 = "{\r\n"
            + "	\"measures\": [\r\n"
            + "		{\r\n"
            + "			\"eventId\": \"AppClick\",\r\n"
            + "			\"aggregator\": \"uniq_last_day_7\",\r\n"
            + "			\"name\": \"App启动的总次数\"\r\n"
            + "		},\r\n"
            + "		{\r\n"
            + "			\"eventId\": \"_AppEnd\",\r\n"
            + "			\"aggregator\": \"uniq_last_day_7\",\r\n"
            + "			\"name\": \"拉新成功的总次数\"\r\n"
            + "		}\r\n"
            + "	],\r\n"
            + "	\"fromDate\": \"2021-05-30\",\r\n"
            + "	\"toDate\": \"2021-05-31\",\r\n"
            + "	\"unit\": \"day\",\r\n"
            + "	\"byFields\": [\r\n"
            + "		\"event.Anything._lib\",\r\n"
            + "	],\r\n"
            + "	\"bucketParams\": {},\r\n"
            + "	\"filter\": {\r\n"
            + "		\"conditions\": []\r\n"
            + "	},\r\n"
            + "	\"requestId\": \"1623809053999:292032\"\r\n"
            + "}";

    public static String count_last_day_30 = "{\r\n"
            + "	\"measures\": [\r\n"
            + "		{\r\n"
            + "			\"eventId\": \"AppClick\",\r\n"
            + "			\"aggregator\": \"count_last_day_30\",\r\n"
            + "			\"name\": \"App启动的总次数\"\r\n"
            + "		},\r\n"
            + "		{\r\n"
            + "			\"eventId\": \"_AppEnd\",\r\n"
            + "			\"aggregator\": \"count_last_day_30\",\r\n"
            + "			\"name\": \"拉新成功的总次数\"\r\n"
            + "		}\r\n"
            + "	],\r\n"
            + "	\"fromDate\": \"2021-05-30\",\r\n"
            + "	\"toDate\": \"2021-05-31\",\r\n"
            + "	\"unit\": \"day\",\r\n"
            + "	\"byFields\": [\r\n"
            + "		\"event.Anything._lib\",\r\n"
            + "	],\r\n"
            + "	\"bucketParams\": {},\r\n"
            + "	\"filter\": {\r\n"
            + "		\"conditions\": []\r\n"
            + "	},\r\n"
            + "	\"requestId\": \"1623809053999:292032\"\r\n"
            + "}";

    public static String uniq_last_day_30 = "{\r\n"
            + "	\"measures\": [\r\n"
            + "		{\r\n"
            + "			\"eventId\": \"AppClick\",\r\n"
            + "			\"aggregator\": \"uniq_last_day_30\",\r\n"
            + "			\"name\": \"App启动的总次数\"\r\n"
            + "		},\r\n"
            + "		{\r\n"
            + "			\"eventId\": \"_AppEnd\",\r\n"
            + "			\"aggregator\": \"uniq_last_day_30\",\r\n"
            + "			\"name\": \"拉新成功的总次数\"\r\n"
            + "		}\r\n"
            + "	],\r\n"
            + "	\"fromDate\": \"2021-05-30\",\r\n"
            + "	\"toDate\": \"2021-05-31\",\r\n"
            + "	\"unit\": \"day\",\r\n"
            + "	\"byFields\": [\r\n"
            + "		\"event.Anything._lib\",\r\n"
            + "	],\r\n"
            + "	\"bucketParams\": {},\r\n"
            + "	\"filter\": {\r\n"
            + "		\"conditions\": []\r\n"
            + "	},\r\n"
            + "	\"requestId\": \"1623809053999:292032\"\r\n"
            + "}";

    public static String count_cur_month = "{\r\n"
            + "	\"measures\": [\r\n"
            + "		{\r\n"
            + "			\"eventId\": \"AppClick\",\r\n"
            + "			\"aggregator\": \"count_cur_month\",\r\n"
            + "			\"name\": \"App启动的总次数\"\r\n"
            + "		},\r\n"
            + "		{\r\n"
            + "			\"eventId\": \"_AppEnd\",\r\n"
            + "			\"aggregator\": \"count_cur_month\",\r\n"
            + "			\"name\": \"拉新成功的总次数\"\r\n"
            + "		}\r\n"
            + "	],\r\n"
            + "	\"fromDate\": \"2021-05-30\",\r\n"
            + "	\"toDate\": \"2021-05-31\",\r\n"
            + "	\"unit\": \"day\",\r\n"
            + "	\"byFields\": [\r\n"
            + "		\"event.Anything._lib\",\r\n"
            + "	],\r\n"
            + "	\"bucketParams\": {},\r\n"
            + "	\"filter\": {\r\n"
            + "		\"conditions\": []\r\n"
            + "	},\r\n"
            + "	\"requestId\": \"1623809053999:292032\"\r\n"
            + "}";

    public static String uniq_cur_month = "{\r\n"
            + "	\"measures\": [\r\n"
            + "		{\r\n"
            + "			\"eventId\": \"AppClick\",\r\n"
            + "			\"aggregator\": \"uniq_cur_month\",\r\n"
            + "			\"name\": \"App启动的总次数\"\r\n"
            + "		},\r\n"
            + "		{\r\n"
            + "			\"eventId\": \"_AppEnd\",\r\n"
            + "			\"aggregator\": \"uniq_cur_month\",\r\n"
            + "			\"name\": \"拉新成功的总次数\"\r\n"
            + "		}\r\n"
            + "	],\r\n"
            + "	\"fromDate\": \"2021-05-30\",\r\n"
            + "	\"toDate\": \"2021-05-31\",\r\n"
            + "	\"unit\": \"day\",\r\n"
            + "	\"byFields\": [\r\n"
            + "		\"event.Anything._lib\",\r\n"
            + "	],\r\n"
            + "	\"bucketParams\": {},\r\n"
            + "	\"filter\": {\r\n"
            + "		\"conditions\": []\r\n"
            + "	},\r\n"
            + "	\"requestId\": \"1623809053999:292032\"\r\n"
            + "}";


    public static String rollup_count = "{\r\n"
            + "	\"measures\": [\r\n"
            + "		{\r\n"
            + "			\"eventId\": \"AppClick\",\r\n"
            + "			\"aggregator\": \"rollup_count\",\r\n"
            + "			\"name\": \"App启动的总次数\"\r\n"
            + "		},\r\n"
            + "		{\r\n"
            + "			\"eventId\": \"_AppEnd\",\r\n"
            + "			\"aggregator\": \"rollup_count\",\r\n"
            + "			\"name\": \"拉新成功的总次数\"\r\n"
            + "		}\r\n"
            + "	],\r\n"
            + "	\"fromDate\": \"2021-05-30\",\r\n"
            + "	\"toDate\": \"2021-05-31\",\r\n"
            + "	\"unit\": \"day\",\r\n"
            + "	\"byFields\": [\r\n"
            + "		\"event.Anything._lib\",\r\n"
            + "	],\r\n"
            + "	\"bucketParams\": {},\r\n"
            + "	\"filter\": {\r\n"
            + "		\"conditions\": []\r\n"
            + "	},\r\n"
            + "	\"requestId\": \"1623809053999:292032\"\r\n"
            + "}";

    public static String rollup_uniq = "{\r\n"
            + "	\"measures\": [\r\n"
            + "		{\r\n"
            + "			\"eventId\": \"AppClick\",\r\n"
            + "			\"aggregator\": \"rollup_uniq\",\r\n"
            + "			\"name\": \"App启动的总次数\"\r\n"
            + "		},\r\n"
            + "		{\r\n"
            + "			\"eventId\": \"_AppEnd\",\r\n"
            + "			\"aggregator\": \"rollup_uniq\",\r\n"
            + "			\"name\": \"拉新成功的总次数\"\r\n"
            + "		}\r\n"
            + "	],\r\n"
            + "	\"fromDate\": \"2021-05-30\",\r\n"
            + "	\"toDate\": \"2021-05-31\",\r\n"
            + "	\"unit\": \"day\",\r\n"
            + "	\"byFields\": [\r\n"
            + "		\"event.Anything._lib\",\r\n"
            + "	],\r\n"
            + "	\"bucketParams\": {},\r\n"
            + "	\"filter\": {\r\n"
            + "		\"conditions\": []\r\n"
            + "	},\r\n"
            + "	\"requestId\": \"1623809053999:292032\"\r\n"
            + "}";

    public static String SUM = "{\r\n"
            + "	\"measures\": [\r\n"
            + "		{\r\n"
            + "			\"eventId\": \"AppClick\",\r\n"
            + "			\"aggregator\": \"SUM\",\r\n"
            + "			\"field\": \"event.payGroupOrder._screen_width\",\r\n"
            + "			\"name\": \"App启动的总次数\"\r\n"
            + "		},\r\n"
            + "		{\r\n"
            + "			\"eventId\": \"_AppEnd\",\r\n"
            + "			\"aggregator\": \"SUM\",\r\n"
            + "			\"field\": \"event.payGroupOrder._screen_width\",\r\n"
            + "			\"name\": \"拉新成功的总次数\"\r\n"
            + "		}\r\n"
            + "	],\r\n"
            + "	\"fromDate\": \"2021-05-30\",\r\n"
            + "	\"toDate\": \"2021-05-31\",\r\n"
            + "	\"unit\": \"day\",\r\n"
            + "	\"byFields\": [\r\n"
            + "		\"event.Anything._lib\",\r\n"
            + "	],\r\n"
            + "	\"bucketParams\": {},\r\n"
            + "	\"filter\": {\r\n"
            + "		\"conditions\": []\r\n"
            + "	},\r\n"
            + "	\"requestId\": \"1623809053999:292032\"\r\n"
            + "}";

    public static String AVG = "{\r\n"
            + "	\"measures\": [\r\n"
            + "		{\r\n"
            + "			\"eventId\": \"AppClick\",\r\n"
            + "			\"aggregator\": \"AVG\",\r\n"
            + "			\"field\": \"event.payGroupOrder._screen_width\",\r\n"
            + "			\"name\": \"App启动的总次数\"\r\n"
            + "		},\r\n"
            + "		{\r\n"
            + "			\"eventId\": \"_AppEnd\",\r\n"
            + "			\"aggregator\": \"AVG\",\r\n"
            + "			\"field\": \"event.payGroupOrder._screen_width\",\r\n"
            + "			\"name\": \"拉新成功的总次数\"\r\n"
            + "		}\r\n"
            + "	],\r\n"
            + "	\"fromDate\": \"2021-05-30\",\r\n"
            + "	\"toDate\": \"2021-05-31\",\r\n"
            + "	\"unit\": \"day\",\r\n"
            + "	\"byFields\": [\r\n"
            + "		\"event.Anything._lib\",\r\n"
            + "	],\r\n"
            + "	\"bucketParams\": {},\r\n"
            + "	\"filter\": {\r\n"
            + "		\"conditions\": []\r\n"
            + "	},\r\n"
            + "	\"requestId\": \"1623809053999:292032\"\r\n"
            + "}";

    public static String MAX = "{\r\n"
            + "	\"measures\": [\r\n"
            + "		{\r\n"
            + "			\"eventId\": \"AppClick\",\r\n"
            + "			\"aggregator\": \"MAX\",\r\n"
            + "			\"field\": \"event.payGroupOrder._screen_width\",\r\n"
            + "			\"name\": \"App启动的总次数\"\r\n"
            + "		},\r\n"
            + "		{\r\n"
            + "			\"eventId\": \"_AppEnd\",\r\n"
            + "			\"aggregator\": \"MAX\",\r\n"
            + "			\"field\": \"event.payGroupOrder._screen_width\",\r\n"
            + "			\"name\": \"拉新成功的总次数\"\r\n"
            + "		}\r\n"
            + "	],\r\n"
            + "	\"fromDate\": \"2021-05-30\",\r\n"
            + "	\"toDate\": \"2021-05-31\",\r\n"
            + "	\"unit\": \"day\",\r\n"
            + "	\"byFields\": [\r\n"
            + "		\"event.Anything._lib\",\r\n"
            + "	],\r\n"
            + "	\"bucketParams\": {},\r\n"
            + "	\"filter\": {\r\n"
            + "		\"conditions\": []\r\n"
            + "	},\r\n"
            + "	\"requestId\": \"1623809053999:292032\"\r\n"
            + "}";

    public static String MIN = "{\r\n"
            + "	\"measures\": [\r\n"
            + "		{\r\n"
            + "			\"eventId\": \"AppClick\",\r\n"
            + "			\"aggregator\": \"MIN\",\r\n"
            + "			\"field\": \"event.payGroupOrder._screen_width\",\r\n"
            + "			\"name\": \"App启动的总次数\"\r\n"
            + "		},\r\n"
            + "		{\r\n"
            + "			\"eventId\": \"_AppEnd\",\r\n"
            + "			\"aggregator\": \"MIN\",\r\n"
            + "			\"field\": \"event.payGroupOrder._screen_width\",\r\n"
            + "			\"name\": \"拉新成功的总次数\"\r\n"
            + "		}\r\n"
            + "	],\r\n"
            + "	\"fromDate\": \"2021-05-30\",\r\n"
            + "	\"toDate\": \"2021-05-31\",\r\n"
            + "	\"unit\": \"day\",\r\n"
            + "	\"byFields\": [\r\n"
            + "		\"event.Anything._lib\",\r\n"
            + "	],\r\n"
            + "	\"bucketParams\": {},\r\n"
            + "	\"filter\": {\r\n"
            + "		\"conditions\": []\r\n"
            + "	},\r\n"
            + "	\"requestId\": \"1623809053999:292032\"\r\n"
            + "}";


    public static String uniqCount = "{\r\n"
            + "	\"measures\": [\r\n"
            + "		{\r\n"
            + "			\"eventId\": \"AppClick\",\r\n"
            + "			\"aggregator\": \"uniqCount\",\r\n"
            + "			\"field\": \"event.payGroupOrder._screen_width\",\r\n"
            + "			\"name\": \"App启动的总次数\"\r\n"
            + "		},\r\n"
            + "		{\r\n"
            + "			\"eventId\": \"_AppEnd\",\r\n"
            + "			\"aggregator\": \"uniqCount\",\r\n"
            + "			\"field\": \"event.payGroupOrder._screen_width\",\r\n"
            + "			\"name\": \"拉新成功的总次数\"\r\n"
            + "		}\r\n"
            + "	],\r\n"
            + "	\"fromDate\": \"2021-05-30\",\r\n"
            + "	\"toDate\": \"2021-05-31\",\r\n"
            + "	\"unit\": \"day\",\r\n"
            + "	\"byFields\": [\r\n"
            + "		\"event.Anything._lib\",\r\n"
            + "	],\r\n"
            + "	\"bucketParams\": {},\r\n"
            + "	\"filter\": {\r\n"
            + "		\"conditions\": []\r\n"
            + "	},\r\n"
            + "	\"requestId\": \"1623809053999:292032\"\r\n"
            + "}";


    public static String uniqAvg = "{\r\n"
            + "	\"measures\": [\r\n"
            + "		{\r\n"
            + "			\"eventId\": \"AppClick\",\r\n"
            + "			\"aggregator\": \"uniqAvg\",\r\n"
            + "			\"field\": \"event.payGroupOrder._screen_width\",\r\n"
            + "			\"name\": \"App启动的总次数\"\r\n"
            + "		},\r\n"
            + "		{\r\n"
            + "			\"eventId\": \"_AppEnd\",\r\n"
            + "			\"aggregator\": \"uniqAvg\",\r\n"
            + "			\"field\": \"event.payGroupOrder._screen_width\",\r\n"
            + "			\"name\": \"拉新成功的总次数\"\r\n"
            + "		}\r\n"
            + "	],\r\n"
            + "	\"fromDate\": \"2021-05-30\",\r\n"
            + "	\"toDate\": \"2021-05-31\",\r\n"
            + "	\"unit\": \"day\",\r\n"
            + "	\"byFields\": [\r\n"
            + "		\"event.Anything._lib\",\r\n"
            + "	],\r\n"
            + "	\"bucketParams\": {},\r\n"
            + "	\"filter\": {\r\n"
            + "		\"conditions\": []\r\n"
            + "	},\r\n"
            + "	\"requestId\": \"1623809053999:292032\"\r\n"
            + "}";
}
